define(['jquery'],()=>{
    class Footer{
        constructor () {
            this.loadHtml().then(
                console.log('也可以在这写')
            )
        }
        loadHtml () {
            return new Promise((resolve)=>{
                $('footer').load('/html/includes/footer.html',()=>{
                    resolve()
                })
            })
            
        }
    }
    return new Footer()
})